
import {
    ajaxPost
} from '@/utils/data/request'

// 列表
export function all(params: any) {
    return ajaxPost("auth/agent-list", params)
}

export function add(params: any) {
    return ajaxPost("auth/agent-create", params, { successMessage: true })
}

export function edit(params: any) {
    return ajaxPost("auth/agent-edit", params, { successMessage: true })
}

export function repwd({ agent_sn, agent_password }: any) {
    return ajaxPost("auth/agent-repwd", { agent_sn, agent_password }, { successMessage: true })
}
export function del({ agent_sn }: any) {
    return ajaxPost("auth/agent-delete", { agent_sn }, { successMessage: true })
}

// 设置菜单权限
export function auth(params: any) {
    return ajaxPost("auth/agent-menu", params, { successMessage: true })
}